package com.woniuxy.oa.dao;

import com.woniuxy.oa.entity.Signin;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author Mr X
 */
public interface SigninDAO {
    /**
     * 增加打卡记录
     *
     * @param signin
     */
    @Insert("insert into oa_signin values(#{id},#{upTime},#{upTimeStatus},#{empId},#{downTime},#{downTimeStatus})")
    public void add(Signin signin);

    /**
     * 通过员工ID查询打卡记录
     *
     * @param empid
     * @return
     */
    @Select("select * from oa_signin where empid=#{empid}")
    public List<Signin> getByEmpId(String empid);
}
